<html>
<head><meta charset="utf-8"><title>Tidy error when having too many files in a single dir · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html">Tidy error when having too many files in a single dir</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="228605178"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605178" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Henry Boisdequin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605178">(Mar 03 2021 at 14:55)</a>:</h4>
<p>In <a href="https://github.com/rust-lang/rust/issues/82720">#82720</a> the CI failed because of a tidy error:</p>
<div class="codehilite"><pre><span></span><code>tidy check
tidy error: following path contains more than 1418 entries, you should move the test to some relevant subdirectory (current: 1419): /checkout/src/test/ui
Found 435 error codes
Found 0 error codes with no tests
Done!
some tidy checks failed
some tidy checks failed
</code></pre></div>
<p>I think this calls for a cleanup of the files in <code>src/test/ui</code> and put them in a subdirectory that describes their name. In the meantime, should I sort 1 or 2 files?</p>



<a name="228605508"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605508" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605508">(Mar 03 2021 at 14:57)</a>:</h4>
<p>Mhh, is <code>1418</code> hardcoded in tidy? Or is there maybe a config file that you could tweak?</p>



<a name="228605659"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605659" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Henry Boisdequin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605659">(Mar 03 2021 at 14:58)</a>:</h4>
<p><span class="user-mention silent" data-user-id="255061">Léo Lanteri Thauvin</span> <a href="#narrow/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir/near/228605508">said</a>:</p>
<blockquote>
<p>Mhh, is <code>1418</code> hardcoded in tidy? Or is there maybe a config file that you could tweak?</p>
</blockquote>
<p>Hmm, I'm not sure, I'll look into it. Maybe a tidy dev could give some info?</p>



<a name="228605661"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605661" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605661">(Mar 03 2021 at 14:58)</a>:</h4>
<p>Eh, it actually <em>is</em> hardcoded: <a href="https://github.com/rust-lang/rust/blob/25a2c13e9d19c18d5f3c2656e3d2dda086cb023b/src/tools/tidy/src/ui_tests.rs#L10">https://github.com/rust-lang/rust/blob/25a2c13e9d19c18d5f3c2656e3d2dda086cb023b/src/tools/tidy/src/ui_tests.rs#L10</a></p>



<a name="228605684"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605684" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Henry Boisdequin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605684">(Mar 03 2021 at 14:58)</a>:</h4>
<p>Hehe</p>



<a name="228605708"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605708" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Henry Boisdequin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605708">(Mar 03 2021 at 14:58)</a>:</h4>
<p>I'll create a Rust issue for sorting the files</p>



<a name="228605734"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605734" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605734">(Mar 03 2021 at 14:59)</a>:</h4>
<p>There might be one open already</p>



<a name="228605808"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605808" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605808">(Mar 03 2021 at 14:59)</a>:</h4>
<p>I think I've already seen one, but maybe it was for a specific directory</p>



<a name="228605840"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605840" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605840">(Mar 03 2021 at 14:59)</a>:</h4>
<p>You appear to be adding a file to the root directory in that PR, which should be added to src/test/ui/typeck, for example</p>



<a name="228605854"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228605854" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228605854">(Mar 03 2021 at 14:59)</a>:</h4>
<p>there is an open issue</p>



<a name="228606219"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228606219" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Henry Boisdequin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228606219">(Mar 03 2021 at 15:01)</a>:</h4>
<p>Which issue is it, could I have a number? Would like to help out <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<a name="228606254"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228606254" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228606254">(Mar 03 2021 at 15:01)</a>:</h4>
<p>I don't have it on hand.</p>



<a name="228606284"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228606284" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228606284">(Mar 03 2021 at 15:01)</a>:</h4>
<p>let me look</p>



<a name="228606290"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228606290" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Henry Boisdequin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228606290">(Mar 03 2021 at 15:01)</a>:</h4>
<p>Should I keep <a href="https://github.com/rust-lang/rust/issues/82722">#82722</a> open?</p>



<a name="228606344"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228606344" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Henry Boisdequin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228606344">(Mar 03 2021 at 15:02)</a>:</h4>
<p>Or close as duplicate</p>



<a name="228606395"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228606395" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228606395">(Mar 03 2021 at 15:02)</a>:</h4>
<p>Closed as a dup and linked to <a href="https://github.com/rust-lang/rust/issues/73494">https://github.com/rust-lang/rust/issues/73494</a>.</p>



<a name="228606469"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Tidy%20error%20when%20having%20too%20many%20files%20in%20a%20single%20dir/near/228606469" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Henry Boisdequin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Tidy.20error.20when.20having.20too.20many.20files.20in.20a.20single.20dir.html#228606469">(Mar 03 2021 at 15:03)</a>:</h4>
<p>Thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>